
package te2;

import java.util.Calendar;

/**
*@author created by zhanxianbo
*@date 2017��5��22��--����4:18:59
*/
public class test6 {
public static void main(String[] args) {
	
	/*
	DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
	Student student=new  Student();
	
	student.setDate(1495531504277l);
	student.setEnd(1495531504277l);
	
	Date date = new Date(student.getDate());
	System.out.println(formatter.format(date));*/
	
	Integer a=getCurrMinuteByDay();
	System.out.println(a);
	

}
	
public static Integer getCurrMinuteByDay(){
	Calendar calendar = Calendar.getInstance();
	Long curr =  calendar.getTimeInMillis();
	System.out.println(curr);
	calendar.set(Calendar.HOUR_OF_DAY, 0);
	calendar.set(Calendar.MINUTE, 0);
	calendar.set(Calendar.SECOND, 0);
	calendar.set(Calendar.MILLISECOND, 0);
	Long old =calendar.getTimeInMillis();
	System.out.println(old);
	Long tmp = (curr-old)/60000;
	
	return tmp.intValue();
}
	
}


